import service from '@/utils/request'

export function getList(params) {
  return service({
    url: '/umsMenu/list',
    method: 'get',
    params
  })
}

export function getMenus() {
  return service({
    url: '/umsMenu/list?pageNo=1&size=999999',
    method: 'get',

  })
}

export function getParent(params) {
  return service({
    url: '/umsMenu/getParent',
    method: 'get',
    params
  })
}


export function getForm(id) {
  return service({
    url: '/umsMenu/queryById?menuId='+id,
    method: 'get'
  })
}


export function save(params) {
  return service({
    url: '/umsMenu/save',
    method: 'post',
    params
  })
}


export function update(params) {
  return service({
    url: '/umsMenu/update',
    method: 'post',
    params
  })
}
export function deleteById(id) {
  return service({
    url: '/umsMenu/deleteById?menuId='+id,
    method: 'get',
  })
}
